package org.jeecg.modules.meter.mapper;

import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.entity.meter.MeterControlSwitch;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.vo.meter.MeterSwitchRespVo;

/**
 * @Description: 仪表通断记录表
 * @Author: jeecg-boot
 * @Date:   2020-11-20
 * @Version: V1.0
 */
public interface MeterControlSwitchMapper extends BaseMapper<MeterControlSwitch> {
    @SqlParser(filter = true)
    int updateCallbackStatus(@Param("bean") MeterControlSwitch meterControl);

    Integer queryResult(@Param("meterId") String meterId);

    List<MeterSwitchRespVo> getSwitchRecord(@Param("meterId") String meterId);
    @SqlParser(filter = true)
    MeterControlSwitch queryById(@Param("id") String requestCode);
}
